package com.example.voting_master.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Builder;
import lombok.Data;

import java.io.Serializable;
import java.time.LocalDateTime;
import java.util.Date;

@Data
@TableName(value = "candidate_vote_stats")
public class CandidateVoteStats implements Serializable {
    @TableId(value = "id",type = IdType.AUTO)
    private Long id;

    @TableField(value = "candidate_id")
    private Long candidateId;

    @TableField(value = "theme_id")
    private Long themeId;

    @TableField(value = "visits")
    private Long visits;

    @TableField(value = "votes")
    private Long votes;

    @TableField(value = "create_time")
    private String createTime;

}
